package com.app;

import java.awt.Component;
import java.util.EventObject;

import javax.swing.AbstractCellEditor;
import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.TableCellEditor;

public class TradeTableCellEditor extends AbstractCellEditor implements
		TableCellEditor {
	JComponent component = new JTextField();
	@Override
	public Component getTableCellEditorComponent(JTable table, Object value,
			boolean isSelected, int row, int column) {
		// TODO Auto-generated method stub
		return component;
	}

	@Override
	public Object getCellEditorValue() {
		return ((JTextField)component).getText();
	}

	/* (non-Javadoc)
	 * @see javax.swing.AbstractCellEditor#isCellEditable(java.util.EventObject)
	 */
	@Override
	public boolean isCellEditable(EventObject e) {
		// TODO Auto-generated method stub
		return false;
	}

	
}
